<%@page import="cn.bupt.adt.constant.Constants"%>
<%@page import="java.text.*"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
<%@ page  isELIgnored="false"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Date date = new Date();
DateFormat df = new SimpleDateFormat(Constants.DATE_PATTERN);
Calendar calendar = new GregorianCalendar();
calendar.setTime(date);
calendar.add(Calendar.DATE, 1);
date = calendar.getTime();
String endTime = df.format(date);
request.setAttribute("endTime", endTime);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>首页</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/bootstrap.min.css" />
	    <!-- BOOTSTRAP STYLES-->
    <link href="<%=request.getContextPath()%>/assets/css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLES-->
    <link href="<%=request.getContextPath()%>/assets/css/font-awesome.css" rel="stylesheet" />
    <!--CUSTOM BASIC STYLES-->
    <link href="<%=request.getContextPath()%>/assets/css/basic.css" rel="stylesheet" />
    <!--CUSTOM MAIN STYLES-->
    <link href="<%=request.getContextPath()%>/assets/css/custom.css" rel="stylesheet" />
    <!-- GOOGLE FONTS-->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
	<script src="<%=request.getContextPath()%>/assets/js/jquery-1.10.2.js"></script>
	 <script type="text/javascript" src="<%=request.getContextPath()%>/js/public/home.js"></script>
	  </head>
  
  <body style="margin:0;padding:0">
    <div id="wrapper">
        <nav class="navbar navbar-default navbar-cls-top " role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <span class="navbar-brand">安德泰管理系统</span>
            </div>

            <div class="header-right">

             <!--  <span class="btn btn-info" title="New Message"><b>30 </b><i class="fa fa-envelope-o fa-2x"></i></span>
                <span class="btn btn-primary" title="New Task"><b>40 </b><i class="fa fa-bars fa-2x"></i></span> -->
             <a href="public/logout">   <span class="btn btn-danger" title="Logout"><i class="fa fa-exclamation-circle fa-2x"></i></span></a>


            </div>
           
        </nav>
        <!-- /. NAV TOP  -->
        <nav class="navbar-default navbar-side" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav" id="main-menu">
                    <li>
                        <div class="user-img-div">
                            <img src="assets/img/user.png" class="img-thumbnail" />

                            <div class="inner-text">
                               	 <small>管理员:${name} </small>
                            <br />
                            <c:choose>
	                            <c:when test="${!empty lastLoginTime }">
	                            	<small>最近登录时间 : <fmt:formatDate value="${lastLoginTime}" pattern="yyyy-MM-dd HH:mm:ss"/> </small>
	                            </c:when>
	                            <c:otherwise>
	                            	<small>从未登录过 </small>
	                            </c:otherwise>
                            </c:choose>

                                
                            </div>
                        </div>

                    </li>


                    <li>
                        <a  href="javascript:void(0);" onclick="changeIframe('public/blank')"><i class="fa fa-dashboard "></i>首页</a>
                    </li>
                    <li>
                        <a href="#"><i class="fa fa-medkit "></i>订单管理 <span class="fa arrow"></span></a>
                         <ul class="nav nav-second-level">
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('orderManagement/index/1')"><i class="fa fa-circle-o"></i>所有订单</a>
                            </li>

                             <li>
                                <a href="javascript:void(0);" onclick="changeIframe('orderManagement/onGoUntaked/1')"><i class="fa  fa-clock-o "></i>订单未接单</a>
                            </li>
                             <li>
                                <a href="javascript:void(0);" onclick="changeIframe('orderManagement/overTimeOrder/1')"><i class="fa fa-exclamation-circle"></i>超时订单</a>
                            </li>
                            
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('orderManagement/takedAndUnoperated/1')"><i class="fa fa-adjust"></i>接单未手术订单</a>
                            </li>
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('orderManagement/takedAndOperating/1')"><i class="fa fa-dot-circle-o"></i>开始手术订单</a>
                            </li>
                             <li>
                                <a href="javascript:void(0);" onclick="changeIframe('orderManagement/takedAndFinished/1')"><i class="fa fa-bullseye"></i>机构未确认订单</a>
                            </li>                            
                             <li>
                                <a href="javascript:void(0);" onclick="changeIframe('orderManagement/takedAndAskForHelp/1')"><i class="fa fa-comments-o"></i>求助订单</a>
                            </li>
                             <li>
                                <a href="javascript:void(0);" onclick="changeIframe('orderManagement/finished/1')"><i class="fa fa-check-square-o "></i>完成订单</a>
                            </li>
                             <li>
                                <a href="javascript:void(0);" onclick="changeIframe('orderManagement/canceled/1')"><i class="fa fa-trash-o "></i>取消订单</a>
                            </li>
                            
                           
                        </ul>
                    </li>
                     <li>
                        <a href="#"><i class="fa fa-user-md "></i>医生管理 <span class="fa arrow"></span></a>
                         <ul class="nav nav-second-level">
                           <!--  <li>
                                <a href="javascript:void(0);" onclick="changeIframe('doctorManagement/addDoctor')"><i class="fa fa-plus-square"></i>添加医生</a>
                            </li> -->
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('doctorManagement/index/1')"><i class="fa fa-list-ul"></i>医生列表</a>
                            </li>
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('doctorManagement/reviewIndex/1')"><i class="fa fa-list-ul"></i>已审核医生列表</a>
                            </li>  
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('doctorManagement/unreviewIndex/1')"><i class="fa fa-exclamation-triangle"></i>待审核医生列表</a>
                            </li>                                                       
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('doctorManagement/modifypasswd_index/1')"><i class="fa fa-exclamation-triangle"></i>医生密码重置</a>
                            </li>                                                       
                             <li>
                                <a href="javascript:void(0);" onclick="changeIframe('doctorManagement/operationType/1')"><i class="fa fa-wheelchair "></i>手术类型</a>
                            </li>
                            <!--  <li>
                                <a href="social.html"><i class="fa fa-send "></i>Social</a>
                            </li>
                            
                             <li>
                                <a href="message-task.html"><i class="fa fa-recycle "></i>Messages Tasks</a>
                            </li> -->
                            
                           
                        </ul>
                    </li>

                    <li>
                        <a href="#"><i class="fa fa-hospital-o "></i>机构管理<span class="fa arrow"></span></a>
                         <ul class="nav nav-second-level">
                           
                             <li>
                                <a href="javascript:void(0);" onclick="changeIframe('institutionManagement/index/1')"><i class="fa fa-list-ul"></i>机构列表</a>
                            </li>
							 <li>
                                <a href="javascript:void(0);" onclick="changeIframe('institutionManagement/addInstitution')"><i class="fa fa-plus-square"></i>添加机构</a>
                            </li>
                        </ul>
                   </li>
                    <li>
                        <a href="#"><i class="fa fa-hospital-o "></i>检查机构管理<span class="fa arrow"></span></a>
                         <ul class="nav nav-second-level">
                            
                             <li>
                                <a href="javascript:void(0);" onclick="changeIframe('checkInstitutionManagement/index/1')"><i class="fa fa-list-ul"></i>检查机构列表</a>
                            </li>
							<li>
                                <a href="javascript:void(0);" onclick="changeIframe('checkInstitutionManagement/addInstitution')"><i class="fa fa-plus-square"></i>添加检查机构</a>
                            </li>
                        </ul>
                   </li>                   
                   <li>
                        <a href="#"><i class="fa fa-medkit"></i>检查机构订单<span class="fa arrow"></span></a>
                         <ul class="nav nav-second-level">
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('InspectOrderController/index/1')"><i class="fa fa-list-ul"></i>订单列表</a>
                            </li>
							<li>
                                <a href="javascript:void(0);" onclick="changeIframe('InspectOrderController/indexTaked/1')"><i class="fa fa-list-ul"></i>已接单订单</a>
                            </li>
                             
                        </ul>
                   </li>
                   <li>
                        <a href="#"><i class="fa fa-table "></i>检查项目<span class="fa arrow"></span></a>
                         <ul class="nav nav-second-level">
                            
                             <li>
                                <a href="javascript:void(0);" onclick="changeIframe('InspectItemsController/index/1')"><i class="fa fa-list-ul"></i>检查项目列表</a>
                            </li>
							<li>
                                <a href="javascript:void(0);" onclick="changeIframe('InspectItemsController/addinspects')"><i class="fa fa-plus-square"></i>添加检查项目</a>
                            </li>
                        </ul>
                   </li>
                    <li>
                        <a href="#"><i class="fa fa-jpy"></i>财务管理<span class="fa arrow"></span></a>
                         <ul class="nav nav-second-level">
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('financeManagement/index/1?startTime=1970-01-01&endTime=${endTime}')"><i class="fa fa-list-alt "></i>收支明细</a>
                            </li>
                             <li>
                                <a href="javascript:void(0);" onclick="changeIframe('financeManagement/withdraw/1')"><i class="fa fa-list-ul"></i>提现请求</a>
                            </li>
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('financeManagement/undealedwithdraw/1')"><i class="fa fa-exclamation-triangle"></i>未处理的提现请求</a>
                            </li>
                        </ul>
                   </li>                   
<%--                     <li>
                        <a class="active-menu" href="javascript:void(0);" onclick="changeIframe('financeManagement/index/1?startTime=1970-01-01&endTime=${endTime}')"><i class="fa fa-square-o "></i>财务管理</a>
                    </li> --%>
                    <li>
                        <a href="#"><i class="fa fa-gear "></i>系统设置<span class="fa arrow"></span></a>
                         <ul class="nav nav-second-level">
                            
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('public/adminUserDetail/1')"><i class="fa fa-user"></i>管理员信息</a>
                            </li>
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('public/jumpSecretEdit/${id}')"><i class="fa fa-wrench"></i>修改密码</a>
                            </li>
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('public/jumpInfoEdit/1')"><i class="fa fa-refresh"></i>修改管理员信息</a>
                            </li>
                            </li>
                             <li>
                                <a href="javascript:void(0);" onclick="changeIframe('carouselManagement/index/1')"><i class="fa fa-flag-o"></i>轮播图信息</a>
                            </li>
                            <li>
                                <a href="javascript:void(0);" onclick="changeIframe('public/jumpOrderSetEdit/1')"><i class="fa fa-thumb-tack"></i>附加设置</a>
                            </li>
                             <li>
                                <a href="javascript:void(0);" onclick="changeIframe('userAgreementManagement/detail')"><i class="fa fa-list-alt"></i>用户协议</a>
                            </li>                                                        
                        </ul>
                    <li>
                </ul>
            </div>

        </nav>
        <!-- /. NAV SIDE  -->
         <div id="page-wrapper" style="padding:0">
		<iframe src="public/blank" id="frameContent" width="100%" height="100%" style="overflow-x:hidden;overflow-y:hidden"></iframe>
	            <!-- /. PAGE INNER  -->
	        <!-- /. PAGE WRAPPER  -->
	     </div>     
	    <!-- /. WRAPPER  -->
	    <div id="footer-sec">
	        
	    </div>
	    <!-- /. FOOTER  -->
	    <!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
	    <!-- JQUERY SCRIPTS -->
	    <!-- BOOTSTRAP SCRIPTS -->
	    <script src="assets/js/bootstrap.js"></script>
	    <!-- METISMENU SCRIPTS -->
	    <script src="assets/js/jquery.metisMenu.js"></script>
	    <!-- CUSTOM SCRIPTS -->
	    <script src="assets/js/custom.js"></script>  
	  </body>
	</html>